﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DelonixRegiaHotel.DBManager;
using DelonixRegiaHotel.Classes;
using System.Collections;
using System.Data.SqlClient;
using System.Configuration;

namespace DelonixRegiaHotel
{
    public partial class HousekeepingDailySchedule : Form
    {
        public HousekeepingDailySchedule()
        {
            InitializeComponent();
        }

        private void HousekeepingDailySchedule_Load(object sender, EventArgs e)
        {
            
            
        }

        private void SelectDay_SelectedIndexChanged(object sender, EventArgs e)
        {
            
            
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            comboBox1.DisplayMember = "Monday";
            comboBox1.DisplayMember = "Tuesday";
            comboBox1.DisplayMember = "Wednesday";
            comboBox1.DisplayMember = "Thursday";
            comboBox1.DisplayMember = "Friday";
            comboBox1.DisplayMember = "Saturday";
            comboBox1.DisplayMember = "Sunday";

            Staff s = new Staff();
            ArrayList array = new ArrayList();
            ReportDBManager.getStaffShiftDay(s);
            foreach(var c in array)
            {
                comboBox1.SelectedItem.ToString();
            }
            
            // TODO: This line of code loads data into the 'housekeepingDailyScheduleDataSet.DataTable1' table. You can move, or remove it, as needed.
            this.dataTable1TableAdapter.Fill(this.housekeepingDailyScheduleDataSet.DataTable1, comboBox1.SelectedItem.ToString());

            this.reportViewer1.RefreshReport();
        }
    }
}
